//
//  NSString+WZB.h
//  LiveVideo
//
//  Created by WZB on 16/3/29.
//  Copyright © 2016年 jjjr. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (WZB)
/**
 *  手机号验证
 */
- (BOOL)validateMobile;

/**
 *  验证码验证
 */
- (BOOL)validateiDCode;

- (BOOL)validatePSW;


-(BOOL)validateChinese;
// 身份证号
- (BOOL) validateIdentityCard;


-(BOOL)validateBankNo;
//是否为空
+ (BOOL)isEmpty:(NSString *)string;
/**
 *  字符串转字典
 */
+(NSDictionary *)parseJSONStringToNSDictionary:(NSString *)JSONString;

/**
 *  金额
 */
-(BOOL)checkTheAmount;
/**
 *  验证四位数字验证码
 */
-(BOOL)checkFourNumber;

// 不能包含特殊字符
- (BOOL)hasSpecialCharacter;

- (instancetype)changeBankNoType;

/** 判断字符串是否为空 */
- (BOOL)isEqualToNil;

/** 去除空格 */
- (NSString *)removeSpaceAndNewline;

// 是否为url
- (BOOL)isValidUrl;
// 编码
- (NSString *)urlencode;

- (NSString *)dealSpecialChar;

+ (NSString *)getDeviceInfo;
@end
